package com.firestone.bean.entity.mysql.primary;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 系统资源库表
 * </p>
 *
 * @author CAIYJ
 * @since 2018-03-27
 */
@TableName("im_center_resource")
public class ImCenterResource extends Model<ImCenterResource> {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键id
     */
    private Long id;
    /**
     * 父级ID
     */
    @TableField("parent_id")
    private Long parentId;
    /**
     * 资源名称
     */
    private String name;
    /**
     * 类型：1：DM菜单；2：终端菜单；...；10：资源URL
     */
    private Integer type;
    /**
     * URL资源
     */
    private String url;
    /**
     * 权限
     */
    private String permission;
    /**
     * 描述
     */
    private String describe;
    /**
     * 是否删除 1：未删除；0：已删除
     */
    @TableField("is_delete")
    private Long isDelete;
    /**
     * 创建人
     */
    private Long creator;
    /**
     * 修改人
     */
    private Long reviser;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Long getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Long isDelete) {
        this.isDelete = isDelete;
    }

    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public Long getReviser() {
        return reviser;
    }

    public void setReviser(Long reviser) {
        this.reviser = reviser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ImCenterResource{" +
        ", id=" + id +
        ", parentId=" + parentId +
        ", name=" + name +
        ", type=" + type +
        ", url=" + url +
        ", permission=" + permission +
        ", describe=" + describe +
        ", isDelete=" + isDelete +
        ", creator=" + creator +
        ", reviser=" + reviser +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
